package com.net.redis_plus.pojo;

public enum Conditons {

    LIKE("LIKE"),
    IN("IN")

    ;


    private String symbol;

    Conditons(String symbol) {
        this.symbol = symbol;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public static Conditons getConditionType(String condition){
        for(Conditons bt:values()){
            if(bt.symbol.equalsIgnoreCase(condition)){
                return bt;

            }
        }
        return null;
    }

}
